package com.pro01.carcontrol.encode;

public enum CarDirection {
    Stop(0),
    Front(1),
    After(2),
    Left(3),
    Right(4),
    LeftRotate(5),
    RightRotate(6),
    Brake(7);

    private final int code;

    CarDirection(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}